package com.sundaying.gooway.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.sundaying.gooway.dao.GleanInfoDao;
import com.sundaying.gooway.entity.GleanInfo;

@Component("GleanInfoService")
public class GleanInfoService {
	private GleanInfoDao gleanInfoDao;

	public GleanInfoDao getGleanInfoDao() {
		return gleanInfoDao;
	}

	@Resource
	public void setGleanInfoDao(GleanInfoDao gleanInfoDao) {
		this.gleanInfoDao = gleanInfoDao;
	}

	public int add(GleanInfo gleanInfo){
		return gleanInfoDao.save(gleanInfo);
	}
}
